﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Help.BLL
{
    public class Class
    {
        public static DataTable GetClass()
        {
            string sql = "select [id],[classname],[pid] from [QT_Class]";

            DataTable dt = new QT.DBO.OleDBHelper(DBase.DSN).DataTable(sql);

            return dt;
        }

        public static DataTable GetClass(string pid)
        {
            string sql = "select [id],[classname],[pid] from [QT_Class] where [pid]=" + pid + "";

            DataTable dt = new QT.DBO.OleDBHelper(DBase.DSN).DataTable(sql);

            return dt;
        }
    }
}
